package com.susallwave.srcb.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.susallwave.srcb.entity.BaseEntityNoDel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author MyBatisPlusGenerator
 * @since 2025-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user")
@ApiModel(value="User对象", description="用户表")
public class User extends BaseEntityNoDel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "员工号")
    private String userAcct;

    @ApiModelProperty(value = "用户名")
    private String name;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "机构号")
    private String subDeptId;

    @ApiModelProperty(value = "一级机构号")
    private String subParentDept;

    @ApiModelProperty(value = "密码（加密）")
    @TableField(select = false)
    private String password;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "在职、离职")
    private String state;

    @ApiModelProperty(value = "是否行员")
    private String isCrew;

    @ApiModelProperty(value = "最后登陆时间")
    private Date lastLoginTime;

    @ApiModelProperty(value = "在绿金用户状态（如ACTIVE/INVALID）")
    private String lockFlag;

    @ApiModelProperty(value = "排序序号")
    private Integer sort;

}
